
<!DOCTYPE html>
<html class="root platform-mac" lang="zh">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <meta charset="UTF-8">
  <title>小说排行榜_火星小说_完本小说免费下载，最新最热最好看的小说阅读网</title>
  <meta name="keywords" content="火星小说，火星，小说排行榜，免费下载阅读，完本小说，玄幻仙侠小说，悬疑灵异小说，现代都市小说，古代言情小说，现代言情小说，最新连载，最热完本，好看的小说，小说阅读网">
  <meta name="description" content="火星小说网，和人类一起阅读，提供最新最热的免费小说在线阅读以及免费下载阅读，各种好看的小说排行榜，包括现代都市小说、悬疑灵异小说、历史军事小说、玄幻仙侠小说、现代言情小说、古代言情小说、纯爱小说，仙侠奇幻小说尽汇于此。优质版权小说：阴间商人，青春不悔少年狂，元始不灭诀，不灭的男神，古蜀国密码，花神录，江山倾：青鸢皇后。">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <link href="https://c.hotread.com/assets/images/favico.ico" rel="shortcut icon">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="renderer" content="webkit">
  <meta http-equiv="Cache-Control" content="no-transform">
  <meta property="wb:webmaster" content="9c7fc0d9e77080c8">
  <meta property="qc:admins" content="0237266277607425146375">
  <meta name="sogou_site_verification" content="TbErdP1uQj">
  <meta name="robots" content="none">
  <meta name="baidu-site-verification" content="imoPxKm9GJ">
  <script src="/js/hm.js"></script><script type="text/javascript">if( top.location != document.location ){top.location.replace(document.location.href);}</script>
  <script type="text/javascript">document.documentElement.className = 'root platform-mac'</script>
  <link rel="stylesheet" href="/css/normalize.css">
  <link rel="stylesheet" href="/css/story.css">
  <link rel="stylesheet" href="/css/auth.css">
</head>
<body>
<div class="container clearfix" id="authController">
  <style>
    #authController .input-error {
      border-color: #f00 !important;
    }
  </style>
  <div class="auth-banner">
    <a href="https://www.hotread.com/">
      <img src="/image/logo.png" alt="" class="logo">
    </a>
  </div>


    <form class="auth-form" method="post" onsubmit="postcheck()">
    {!!csrf_field()!!}
    <h2>注册</h2>
    <div class="auth-switch">已有账号？<a href="{{url('auth/login')}}">立即登录</a></div>
    <div class="form-box">
      <div class="form-group account">
        <div class="form-control" >
          <input type="text" name="name" placeholder="给自己设置一个牛逼的昵称吧~">
        </div>
      </div>
      <div class="form-group mobile">
        <div class="form-control" >
          <input type="text" name="mobile" value="" placeholder="请输入11位手机号">
        </div>
      </div>
      <div class="form-group account">
        <div class="form-control">
          <input type="text" name="email"  placeholder="请输入您的邮箱地址">
        </div>
      </div>
      
      <div class="form-group note">
        <div class="form-control" >
          <input type="text" name="duanxin" placeholder="请输入短信验证码">
        </div>
        <span class="get" >获取短信验证码</span>

      </div>
      <div class="form-group password">
        <div class="form-control" >
          <input type="password" name="password" placeholder="请输入密码">
        </div>
      </div>
      <div class="form-group password-confirm">
        <div class="form-control" >
          <input type="password" name="password_confirmation" placeholder="请确认密码">
        </div>
      </div>
      <div class="submit-box">
        <input value="注册" class="submit" type="submit">
      </div>
    </div>
    <div class="third-login">
      <strong>第三方登录</strong>
      <a href="https://graph.qq.com/oauth2.0/authorize?response_type=code&amp;client_id=101346160&amp;redirect_uri=http%3A%2F%2Fwww.hotread.com%2Flogin%2Fqq" class="third-btn qq" title="QQ登录">QQ登录</a>
      <a href="https://api.weibo.com/oauth2/authorize?client_id=605132052&amp;response_type=code&amp;redirect_uri=http%3A%2F%2Fwww.hotread.com%2Flogin%2Fweibo" class="third-btn weibo" title="微博登录">微博登录</a>
    </div>
  </form>


</div>
<script src="http://libs.baidu.com/jquery/2.0.0/jquery.js"></script>
<script src="/js/vue.js"></script>
@include('public/footer');
</body>
<script>
  var inp = document.getElementsByName('mobile')[0];

  // inp.onblur = function(){
  //  var shouji = this.value;
  // }
  //console.log(inp);
  var enable = true;
 $('.get').click(function(){
    if(enable == false){
      return;
   //alert(inp.value);
    }
    enable == false;
    var num =60;
    var interval = window.setInterval(function(){
       $('.get').html(--num + 's 重新发送');
       if(num == 0){
        enable = true;
        window.clearInterval(interval);
        $('.get').html('重新发送');
       }

    },1000);
    var xhr = new XMLHttpRequest;
    xhr.open('get','/haha?name='+inp.value,true);
    xhr.send(null);
    var mobile = $('input[name=mobile]').val();

     $.ajax({
      url: 'register',
      dataType: 'json',
      cache: false,
      data: {mobile: mobile},
      success: function(data) {
        if(data == null) {
          alert('短信发送失败');
        }
        if(data.status != 0) {
          alert('短信发送成功');
        }

     alert('短信发送成功');
      },
      error: function(xhr, status, error) {
        console.log(xhr);
        console.log(status);
        console.log(error);
      }
    });
 });
</script>

</html>
